package edu.java.homework.hw03.introJava11.chapter10;

public class Cat {
    private String name=null;
    private String color=null;
    
    public Cat() {
	this("Maca","grey");
    }
    
    public Cat(String name){
	this(name,"grey");
    }
    public Cat(String name, String color){
	this.name=name;
	this.color=color;
    }
    
    public String getName(){
	return name;
    }
    public void setName(String name){
	this.name=name;
    }
    public String getColor(){
	return color;
    }
    public void setColor(String color) {
        this.color = color;
    }
    public void sayMiau(){
	System.out.printf("Cat %s said: Miauuuuu!\n", getName());
    }
}
